package org.wk.common.qiniu;

/**
 * Created by FENGCUIJIE on 2017/5/5.
 */
public enum FileSuffixEnum {

    /**
     * 文本
     txt          text/plain
     asc          text/plain
     css          text/css
     etx          text/x-setext
     htm          text/html
     html         text/html
     rtf          text/rtf
     rtx          text/richtext
     sgm          text/sgml
     sgml         text/sgml
     tsv          text/tab-separated-values
     wml          text/vnd.wap.wml
     wmls         text/vnd.wap.wmlscript
     xml          text/xml
     xsl          text/xml
     */
    TXT("TXT", "text/plain", ".txt"),

    /**
     * 图片
     bmp          image/bmp
     djv          image/vnd.djvu
     djvu         image/vnd.djvu
     gif          image/gif
     ief          image/ief
     jpe          image/jpeg
     jpeg         image/jpeg
     jpg          image/jpeg
     pbm          image/x-portable-bitmap
     pgm          image/x-portable-graymap
     png          image/png
     pnm          image/x-portable-anymap
     ppm          image/x-portable-pixmap
     ras          image/x-cmu-raster
     rgb          image/x-rgb
     tif          image/tiff
     tiff         image/tiff
     xpm          image/x-xpixmap
     wbmp         image/vnd.wap.wbmp
     xbm          image/x-xbitmap
     xwd          image/x-xwindowdump
     */
    BMP("BMP", "image/bmp", ".bmp"),

    /**
     * 音频
     au           audio/basic
     aif          audio/x-aiff
     aifc         audio/x-aiff
     aiff         audio/x-aiff
     kar          audio/midi
     m3u          audio/x-mpegurl
     mid          audio/midi
     midi         audio/midi
     mp2          audio/mpeg
     mp3          audio/mpeg
     mpga         audio/mpeg
     ra           audio/x-realaudio
     ram          audio/x-pn-realaudio
     rm           audio/x-pn-realaudio
     rpm          audio/x-pn-realaudio-plugin
     snd          audio/basic
     wav          audio/x-wav
     */
    AU("AU", "audio/basic", ".au"),

    /**
     * 视频
     avi          video/x-msvideo
     mov          video/quicktime
     movie        video/x-sgi-movie
     mpe          video/mpeg
     mpeg         video/mpeg
     mpg          video/mpeg
     mxu          video/vnd.mpegurl
     qt           video/quicktime
     */
    AVI("AVI", "video/x-msvideo", ".avi");

    /**
     * application
     ai           application/postscript
     bcpio        application/x-bcpio
     bin          application/octet-stream
     dcr          application/x-director
     dir          application/x-director
     cdf          application/x-netcdf
     class        application/octet-stream
     cpio         application/x-cpio
     cpt          application/mac-compactpro
     csh          application/x-csh
     dll          application/octet-stream
     dms          application/octet-stream
     doc          application/msword
     dvi          application/x-dvi
     dxr          application/x-director
     eps          application/postscript
     exe          application/octet-stream
     ez           application/andrew-inset
     gtar         application/x-gtar
     hdf          application/x-hdf
     hqx          application/mac-binhex40
     js           application/x-javascript
     latex        application/x-latex
     lha          application/octet-stream
     lzh          application/octet-stream
     man          application/x-troff-man
     me           application/x-troff-me
     mif          application/vnd.mif
     ms           application/x-troff-ms
     nc           application/x-netcdf
     oda          application/oda
     pdf          application/pdf
     pgn          application/x-chess-pgn
     ppt          application/vnd.ms-powerpoint
     ps           application/postscript
     roff         application/x-troff
     sh           application/x-sh
     shar         application/x-shar
     sit          application/x-stuffit
     skd          application/x-koan
     skm          application/x-koan
     skp          application/x-koan
     skt          application/x-koan
     smi          application/smil
     smil         application/smil
     so           application/octet-stream
     spl          application/x-futuresplash
     src          application/x-wais-source
     sv4cpio      application/x-sv4cpio
     sv4crc       application/x-sv4crc
     swf          application/x-shockwave-flash
     t            application/x-troff
     tar          application/x-tar
     tcl          application/x-tcl
     tex          application/x-tex
     texi         application/x-texinfo
     texinfo      application/x-texinfo
     tr           application/x-troff
     ustar        application/x-ustar
     vcd          application/x-cdlink
     wbxml        application/vnd.wap.wbxml
     wmlc         application/vnd.wap.wmlc
     xht          application/xhtml+xml
     xhtml        application/xhtml+xml
     xls          application/vnd.ms-excel
     wmlsc        application/vnd.wap.wmlscriptc
     zip          application/zip
     */

    /**
     * 其它
     ice          x-conference/x-cooltalk

     iges         model/iges
     igs          model/iges
     mesh         model/mesh
     msh          model/mesh
     silo         model/mesh
     vrml         model/vrml
     wrl          model/vrml

     pdb          chemical/x-pdb
     xyz          chemical/x-xyz
     */


    public String getName() {
        return name;
    }

    public String getType() {
        return type;
    }

    public String getSuffix() {
        return suffix;
    }

    private String name;

    private String type;

    private String suffix;

    FileSuffixEnum(String name, String type, String suffix){
        this.name = name;
        this.type = type;
        this.suffix = suffix;
    }



}
